package se.webbzon.boltzmann.editor.component.sequence.factory;

import se.webbzon.boltzmann.game.object.dialogue.DialogueBackground;
import se.webbzon.boltzmann.game.object.dialogue.layout.ChoiceDialogueLayout;
import se.webbzon.boltzmann.game.sequence.builder.AbstractSequenceRow;
import se.webbzon.boltzmann.game.sequence.builder.SequenceBuilder;
import se.webbzon.boltzmann.game.sequence.builder.dialogue.ChoiceDialogueRow;

public class ChoiceDialogueRowFactory extends AbstractSequenceRowFactory {
	
	// The layout used to create simple dialogue rows
	private final ChoiceDialogueLayout layout;

	/*============================================================
	Constructors
	============================================================*/
	
	public ChoiceDialogueRowFactory(ChoiceDialogueLayout layout) {
		super(ChoiceDialogueRow.name);
		this.layout = layout;
	}
	
	/*============================================================
	Constructors
	============================================================*/

	@Override public AbstractSequenceRow makeNew(SequenceBuilder builder) {
		return new ChoiceDialogueRow(	builder,
										layout,
										DialogueBackground.NORMAL,
										"Undefined text.");
	}

}
